package control

import (
	"WeChatMGRA/server/smodul"
	"github.com/gin-gonic/gin"
)

func User_Login(g * gin.Context){
	user:=&smodul.AdminUser {
		UserName:g.PostForm("username"),
		Password:g.PostForm("password"),
	}
	if user.Validation(){
		g.JSON(200,"用户验证通过")
	}else {
		g.JSON(400,"用户不存在或密码错误")
	}
}
